<html xmlns:th="http://www.thymeleaf.org">

<head>
    <title>教师管理</title>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/font-awesome.min.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/popper.min.js"></script>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    <style>
        .admin-left {
            height: 100%;
            background-color: #428bca;
            min-width: 120px !important;
        }
        .navbar{
            margin-bottom: 0;
        }
        .row {
            margin: 0 auto;
        }
    </style>
</head>

<body>
<div th:insert="template::header"></div>
<div class="container-fluid">
    <div class="row">
        <div th:insert="template::admin_left"></div>
        <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
            <h3>个人信息</h3>
            <hr/>
            <div class="col-lg-2 col-sm-2 col-md-2 col-xs-2"></div>
            <div class="col-lg-8 col-sm-8 col-md-8 col-xs-8">
                <table class="table table-bordered">
                    <tr>
                        <td>工号</td>
                        <td th:text="${teacher.teacherId}"></td>
                        <td>姓名</td>
                        <td th:text="${teacher.name}"></td>
                    </tr>
                    <tr>
                        <td>性别</td>
                        <td th:text="${teacher.sex}"></td>
                        <td>职称</td>
                        <td th:text="${teacher.title}"></td>
                    </tr>
                    <tr>
                        <td>专/兼职</td>
                        <td th:text="${teacher.isFullTime==1?'是':'否'}"></td>
                        <td>联系方式</td>
                        <td th:text="${teacher.telephone}"></td>
                    </tr>
                    <tr>
                        <td>教学科目</td>
                        <td th:text="${teacher.subject}"></td>
                        <td>上次登录时间</td>
                        <td th:text="${#dates.format(teacher.lastLoginTime, 'yyyy-MM-dd HH:mm')}"></td>
                    </tr>
                </table>
                <button type="button" class="btn btn-default">修改信息</button>
            </div>
            <div class="col-lg-2 col-sm-2 col-md-2 col-xs-2"></div>
        </div>
    </div>

    <script>
        $(function () {
            $(".panel-heading").click(function (e) {
                /*切换折叠指示图标*/
                $(this).find("span").toggleClass("glyphicon-chevron-down");
                $(this).find("span").toggleClass("glyphicon-chevron-up");
            });
        });
        //注册新增按钮的事件
        $("#add_stu").click(function () {
            $("#myModalLabel").text("新增");
            $('#myModal').modal();
        });
    </script>
</body>

</html>